跳到主要内容

典型安装

缺省情况下,典型安装会创建一个适用于您主机环境的数据库服务器实例。但是,您也可以在安装过程中选择禁用创建服务器实例的选项。

进入解压目录,执行安装脚本 ids_install,即可进行安装。具体命令如下:

[root@localhost ~]# cd /opt
[root@localhost opt]# sh ids_install

典型安装过程如下所示:

  1. 接受授权协议,内容详见 3 手动安装。
  2. 选择安装类型,使用默认安装选项1,直接回车,进行典型安装。
=========================================================================
Installation or Distribution
----------------------------

Select the installation type.

Typical: Install the database server with all features and a database server
that
is configured with default values. Includes:
** Client Software Development Kit (CSDK)
** Java Database Connectivity (JDBC)
Minimum disk space required: 700-800MB

Custom: Install the database server with specific features and software that
you need.
Optionally install a configured database server instance.
Minimum disk space required: 75 MB (without a server instance)

->1- Typical installation
2- Custom installation
3- Extract the product files (-DLEGACY option)
4- Create a RPM package for redistribution


ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT:: 1
  1. 创建实例

系统提示是否创建一个实例,默认选项1为创建,直接回车,创建一个实例。

=======================================================================
Server Instance Creation
------------------------

Create a server instance?

->1- Yes - create an instance
2- No - do not create an instance

ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT::
  1. 选择数据库用户数

选择该实例预期要支持的数据库用户数,默认选项为1,直接回车继续。

=======================================================================
Configuration - Number of Users
-------------------------------

Select the number of expected database users.

->1- 1 - 100
2- 101 - 500
3- 501 - 1000
4- 1000+

ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT::
  1. 配置结束,点击回车进行安装。安装后会提示将进行数据库实例的初始化,按回车继续。
=======================================================================
Ready To Install
----------------

InstallAnywhere is now ready to install GBase 8s Software Bundle onto your
system at the following location:
/opt/GBASE/gbase
PRESS <ENTER> TO INSTALL:

=======================================================================
Installing...
-------------

[==================|==================|==================|===============]
[------------------|------------------|------------------|-------------]



=======================================================================
Server Initialization
---------------------

The server will now be initialized. Initialization might take quite a while,
depending on the performance of your computer.

PRESS <ENTER> TO CONTINUE:
  1. 数据库实例创建成功并应用,点击回车后继续。
=========================================================================
Using the new instance
----------------------

A database server instance was created. If you chose to initialize the
instance, it is ready to use.

You can open a command prompt to an initialized instance by running one of the
following commands at /opt/GBASE/gbase, where ol_gbasedbt1210 is the path or
filename of the instance.

Windows:
ol_gbasedbt1210.cmd

UNIX csh:
source ol_gbasedbt1210.csh

UNIX ksh or bourne:
./ol_gbasedbt1210.ksh

If initialization fails, check the online.log file for messages. The instance's
root chunk must be owned by the correct user and group, and it must have
readable and writable (rw) permission bits set only for owner and group.

PRESS <ENTER> TO CONTINUE:
  1. 安装完成,回车后退出安装程序。
=========================================================================
Installation Complete
---------------------

Congratulations! GBase Software Bundle installation is complete.

Product install status:
GBase: Successful
GBase Connect: Successful

Main Version: GBase 8s V8.8

For more information about using GBase products, see the GBase Information
Center at http://www.gbase.cn.

PRESS <ENTER> TO EXIT THE INSTALLER:

安装完成后,服务器当前环境变量即默认为您安装的数据库实例。您也可以选择把 GBase 8s 安装目录下的环境变量文件ol_gbasedbt1210.ksh的内容追加到 gbasedbt 用户主目录下的 .bash_profile 文件中,以便于 gbasedbt 用户再次登录时即可自动应用这些环境变量,命令参考如下:

[root@localhost ~]# cd /opt/GBASE/gbase
[root@localhost gbase]# cat ol_gbasedbt1210.ksh >> /home/gbasedbt/.bash_profile
[root@localhost ~]# cd /home/gbasedbt/
[root@localhost ~]# source .bash_profile

典型安装完成,查看该实例实际端口的方式如下:

  1. 查看安装目录下,形如ol_gbasedbt1210.ksh的环境变量文件,参数GBASEDBTSERVER的值即为数据库服务器对应的实例名。例如:GBASEDBTSERVER=ol_gbasedbt1210。
  2. 执行如下命令,查看对应端口号。如下30490即为典型安装后数据库实例的端口号。
[gbasedbt@localhost server1]$ cat /etc/services|grep ol_gbasedbt1210
ol_gbasedbt1210 30490/tcp
ol_gbasedbt1210_json 27017/tcp
#JSON listener for ol_gbasedbt1210